let verify = (req,res,next)=>{
    let { account } = req.session;
    if (account) {
        next();
    } else {
        res.redirect("/");
    }
}


module.exports = verify;